let proxyObj={}

proxyObj['/']={
    //Websocket
    ws: false,
    //目标地址
    target:'http://localhost:8080',
    //发送请求的请求头host会被设置成target
    changeOrigin: true,
    //不重写请求地址
    pathRewrite: {
        '^/':'/'
    }
}


module.exports={
    devServer:{
        host:'localhost',
        port: 8081,
        proxy:proxyObj
    }
}
